/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package maince;

import Fachada.Fachada;
import classes.Usuario;
import erro.ConexaoException;
import erro.ConsultaException;
import erro.GeralException;
import java.sql.SQLException;
import javax.swing.JOptionPane;

/**
 *
 * @author George
 */
public class MainUsuarioDel {

    private static Fachada f;

    public static void main(String[] args) throws ConexaoException, ConsultaException, SQLException, GeralException {
        try {
            f = Fachada.getInstancia();
            Usuario usu = new Usuario();
            usu.setCodUsuario(3);

            f.deletarUsu(usu);

            JOptionPane.showMessageDialog(null, "Usuário Excluido com Sucesso!");

        } catch (GeralException e) {
            JOptionPane.showMessageDialog(null, e.getMessage());
        }
    }
}
